<!DOCTYPE html>
<!-- saved from url=(0042)https://v3.bootcss.com/examples/dashboard/ -->
<html lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="https://v3.bootcss.com/favicon.ico">

    <title>快报名跟我学Python吧</title>
    <!-- Bootstrap core CSS -->
    <link href="/static/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <!-- Custom styles for this template -->
    <link href="/static/dashboard.css" rel="stylesheet">
    <link rel="stylesheet" href="/static/fontawesome/css/font-awesome.css">
</head>

<body>
{% include 'day62/_nav.html' %}

<div class="container-fluid">
    <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
            <ul class="nav nav-sidebar">
                <li class="active">
                    <a href="/">首页<span class="sr-only">(current)</span></a>
                </li>
                <li>
                    <a href="/publisher/list.html">出版社列表页<span class="sr-only">(current)</span></a>
                </li>
                <li>
                    <a href="/publisher/spider.html">一键更新<span class="sr-only">(current)</span></a>
                </li>
            </ul>

        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
            <h1 class="page-header">快报名跟我学Python吧</h1>

            <div class="panel panel-primary">
                <!-- Default panel contents -->
                <div class="panel-heading">修改{{ book.title }}信息<i class="fa fa-thumb-tack pull-right"></i></div>
                <div class="panel-body">
                    {% include 'day62/_book_search.html' %}
                    <form class="form-horizontal" action="/book/edit.html" method="post" style="margin-right: 60px;">
                        {% csrf_token %}
                        <div class="form-group">
                            <label class="col-sm-2 control-label">名称</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="title"
                                       value="{{ book.title }}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">作者</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="author"
                                       value="{{ book.author.name }}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">出版社</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="publisher"
                                       value="{{ book.publisher.name }}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">原价</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="start_price"
                                       value="{{ book.start_price }}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">当前价格</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="now_price"
                                       value="{{ book.now_price }}">
                            </div>
                        </div>

                        <div class="modal-footer">
                            <input type="submit" class="btn btn-primary" value="保存">
                        </div>
                    </form>
                </div>

            </div>
        </div>
    </div>
</div>


<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="/static/jquery-3.3.1.js"></script>
<script src="/static/bootstrap/js/bootstrap.js"></script>

</body>
</html>